package com.sulent.frame.support.entity;

/**
 * @ClassName R
 * @Description: TODO
 * @Author Submerge.
 * @Since 2024/1/30 14:43
 * @Version 1.0
 */
public class R<T> {

    private long timestamp = System.currentTimeMillis();

    private boolean success;

    private String message;

    private int code;

    private T data;

    public R(){

    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
